package com.code.day15DuoXianC.Thread;

public class MyTherad  extends Thread{
    @Override
    public  void run(){
        for (int i = 0; i < 5; i++) {
            try {
                Thread.sleep(1000L);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println(MyTherad.currentThread().getName()+ i);
        }
    }
}
